
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>78长度查询器</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
            color: #333;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        
        .container {
            background-color: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
            width: 100%;
            max-width: 600px;
            padding: 40px;
            text-align: center;
            backdrop-filter: blur(10px);
        }
        
        h1 {
            color: #2c3e50;
            margin-bottom: 10px;
            font-weight: 700;
            font-size: 2.5rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        }
        
        .subtitle {
            color: #7f8c8d;
            margin-bottom: 30px;
            font-size: 1.2rem;
            font-style: italic;
        }
        
        .input-group {
            margin-bottom: 30px;
            text-align: left;
        }
        
        label {
            display: block;
            margin-bottom: 12px;
            font-weight: 600;
            color: #2c3e50;
            font-size: 1.2rem;
        }
        
        input {
            width: 100%;
            padding: 16px 20px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            font-size: 18px;
            transition: all 0.3s;
            background-color: #f8f9fa;
        }
        
        input:focus {
            border-color: #3498db;
            outline: none;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
            background-color: white;
        }
        
        .btn {
            background: linear-gradient(to right, #3498db, #2c3e50);
            color: white;
            border: none;
            padding: 16px 32px;
            border-radius: 12px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            width: 100%;
            margin-top: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }
        
        .btn:active {
            transform: translateY(0);
        }
        
        .result-section {
            margin-top: 40px;
            padding: 25px;
            background-color: #f8f9fa;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            display: none;
        }
        
        .result-title {
            color: #2c3e50;
            margin-bottom: 20px;
            font-weight: 600;
            font-size: 1.5rem;
        }
        
        .user-info {
            font-size: 1.2rem;
            margin-bottom: 25px;
            color: #5a6c7d;
        }
        
        .length-display {
            font-size: 3.5rem;
            font-weight: 800;
            color: #e74c3c;
            margin: 20px 0;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        }
        
        .length-scale {
            display: flex;
            justify-content: space-between;
            margin: 25px 0;
            padding: 0 10px;
        }
        
        .scale-item {
            text-align: center;
            font-size: 0.9rem;
            color: #7f8c8d;
            font-weight: 500;
        }
        
        .scale-bar {
            height: 12px;
            background: linear-gradient(to right, #2ecc71, #f1c40f, #e74c3c);
            border-radius: 6px;
            margin: 10px 0 25px;
            position: relative;
            overflow: hidden;
        }
        
        .scale-indicator {
            position: absolute;
            top: -5px;
            width: 4px;
            height: 22px;
            background-color: #2c3e50;
            border-radius: 2px;
            transform: translateX(-50%);
            transition: left 1s ease;
        }
        
        .evaluation {
            background-color: white;
            padding: 20px;
            border-radius: 12px;
            margin-top: 20px;
            border-left: 5px solid #3498db;
            text-align: left;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
        }
        
        .evaluation-title {
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 10px;
            font-size: 1.2rem;
        }
        
        .evaluation-text {
            color: #5a6c7d;
            line-height: 1.6;
            font-size: 1.1rem;
        }
        
        .footer {
            margin-top: 30px;
            color: #7f8c8d;
            font-size: 0.9rem;
        }
        
        @media (max-width: 600px) {
            .container {
                padding: 25px;
            }
            
            h1 {
                font-size: 2rem;
            }
            
            .length-display {
                font-size: 2.8rem;
            }
            
            .scale-item {
                font-size: 0.8rem;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>78长度查询器</h1>
        <p class="subtitle">让Mouz来看看你的78</p >
        
        <div class="input-group">
            <label for="username">请输入您的用户名：</label>
            <input type="text" id="username" placeholder="例如：月岛柒" autocomplete="off">
        </div>
        
        <button class="btn" id="analyze-btn">分析78长度</button>
        
        <div class="result-section" id="result-section">
            <h2 class="result-title">分析结果</h2>
            <div class="user-info" id="user-info">用户名: <span id="username-display"></span></div>
            
            <div class="length-display" id="length-display">21cm</div>
            
            <div class="length-scale">
                <div class="scale-item">0-5</div>
                <div class="scale-item">6-10</div>
                <div class="scale-item">11-13</div>
                <div class="scale-item">14-16</div>
                <div class="scale-item">17-20</div>
                <div class="scale-item">21-25</div>
            </div>
            
            <div class="scale-bar">
                <div class="scale-indicator" id="scale-indicator"></div>
            </div>
            
            <div class="evaluation">
                <div class="evaluation-title">评价</div>
                <div class="evaluation-text" id="evaluation-text">极度夸赞：天啊！这长度简直突破天际！建议立即联系NASA进行科学研究！</div>
            </div>
        </div>
        
        <div class="footer">
            *本结果仅供娱乐，请勿当真
        </div>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const usernameInput = document.getElementById('username');
            const analyzeBtn = document.getElementById('analyze-btn');
            const resultSection = document.getElementById('result-section');
            const usernameDisplay = document.getElementById('username-display');
            const lengthDisplay = document.getElementById('length-display');
            const scaleIndicator = document.getElementById('scale-indicator');
            const evaluationText = document.getElementById('evaluation-text');
            
            // 评价文本数组
            const evaluations = [
                "哎呀，这个长度有点迷你呢！不过浓缩的都是精华！",
                "中规中矩的长度，刚刚好够用！",
                "不错不错，这个长度已经超越平均水平了！",
                "哇！这个长度相当可观，让人印象深刻！",
                "天啊！这长度简直突破天际！建议立即联系NASA进行科学研究！",
                "宇宙级长度！这已经不是凡人能企及的高度了！"
            ];
            
            // 分析按钮点击事件
            analyzeBtn.addEventListener('click', function() {
                const username = usernameInput.value.trim();
                
                if (username === '') {
                    alert('请输入您的用户名！');
                    return;
                }
                
                // 显示结果区域
                resultSection.style.display = 'block';
                
                // 显示用户名
                usernameDisplay.textContent = username;
                
                // 生成随机长度 (5-25之间)
                const randomLength = Math.floor(Math.random() * 21) + 5;
                lengthDisplay.textContent = randomLength + 'cm';
                
                // 设置刻度指示器位置
                const indicatorPosition = ((randomLength - 5) / 20) * 100;
                scaleIndicator.style.left = indicatorPosition + '%';
                
                // 根据长度设置评价
                let evaluationIndex;
                if (randomLength <= 8) {
                    evaluationIndex = 0;
                } else if (randomLength <= 12) {
                    evaluationIndex = 1;
                } else if (randomLength <= 15) {
                    evaluationIndex = 2;
                } else if (randomLength <= 18) {
                    evaluationIndex = 3;
                } else if (randomLength <= 22) {
                    evaluationIndex = 4;
                } else {
                    evaluationIndex = 5;
                }
                
                evaluationText.textContent = evaluations[evaluationIndex];
                
                // 滚动到结果区域
                resultSection.scrollIntoView({ behavior: 'smooth' });
            });
            
            // 按Enter键也可以触发分析
            usernameInput.addEventListener('keypress', function(e) {
                if (e.key === 'Enter') {
                    analyzeBtn.click();
                }
            });
        });
    </script>
</body>
</html>